package com.scedu.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
class EchoController {
    @Value("${server.port}")
    private String port;
    @RequestMapping(value = "/payment/{string}", method = RequestMethod.GET)
    public String echo(@PathVariable String string) {

        return "port:"+port+" Hello Nacos payment " + string;
    }
}
